#include <iostream>
#include "Tank.h"
using namespace std;
int main() {
    //静态成员变量在调用构造函数前就存在
//    cout<<Tank::getCount()<<endl;
    Tank t1('A');
    //静态成员变量实例化后加1
    cout<<t1.getCount()<<"\n";
    Tank* t2 = new Tank('B');
    cout<<"当前tank数:"<<t2->getCount()<<endl;
    delete t2;
    cout<<"销毁实例后tank数量:"<<Tank::getCount()<<endl;
    return 0;
}